//
//  CommonTools.h
//  WTM
//
//  Created by lxj on 2017/11/30.
//  Copyright © 2017年 付凡. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CommonTools : NSObject


//获取当前屏幕显示的viewcontroller
+ (UIViewController *)getCurrentVC;

/**
 打电话

 @param phone 电话号码
 */
+ (void)call:(NSString *)phone;
#pragma mark - 清除缓存
//遍历文件夹获得文件夹大小，返回多少M
+ (float )folderSizeAtPath:(NSString *) folderPath;
//清除缓存
+ (void)clearCachesAtPath:(NSString *)folderPath callBack:(void(^)(void))callBack;

/**
 复制进粘贴板

 @param text 内容
 */
+(void)copyToPasteboard:(NSString *)text;

///获取url里的参数
+(NSDictionary *)getDicByUrl:(NSString *)urlStr;

//小数点后是0就去掉
+(NSString *)formatFloat:(double)f;

@end
